<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;

class AdminTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $admin = [
            [
                'id' => 1,
                'name' => '超级管理员',
                'phone' => '18621930398',
                'password' => bcrypt('02040204'),
                'gender' => '0',
                'avatar' => '',
                'status' => 1,
                'remarks' => '',
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now()
            ]
        ];

        DB::table('admin')->insert($admin);
    }
}
